package com.lyy.king.auth.service;

import com.lyy.king.auth.modal.UserDTO;
import com.lyy.king.auth.model.request.LoginRequest;
import com.lyy.king.auth.model.response.LoginResponse;

public interface AuthService {
    /**
     * 登录获取token
     * @param request
     * @return
     */
    LoginResponse login(LoginRequest request);

    /**
     * 获取登录的用户信息
     * @return
     */
    UserDTO getTokenLoginInfo();


    /**
     * 检查token的有效性
     * @param token
     * @return
     */
    Boolean checkToken(String token);

    /**
     * 退出登录
     * @return
     */
    boolean logout();


}
